﻿
<AutoComplete Items="@StaticItems" OnSelectedItemChanged="OnSelectedItemChanged"></AutoComplete>
<BlockLogger @ref="Trace" class="mt-3"/>

@code {
    [NotNull]
    private BlockLogger? Trace { get; set; }

    private static List<string> StaticItems => new() { "1", "12", "123", "1234", "12345", "123456", "abc", "abcdef", "ABC", "aBcDeFg", "ABCDEFG" };
    private Task OnSelectedItemChanged(string val)
    {
        Trace.Log($"Value: {val}");
        return Task.CompletedTask;
    }
}
